package com.example.demo.mapper;

import com.example.demo.module.UserBean;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * @Author:lgl
 * @Description:
 * @Date:Created in 2017/6/17.
 */
@Mapper
public interface UserMapper extends BaseMapper<UserBean>{

    UserBean login(@Param("phone") String phone, @Param("password") String uPwd);

    /**
     * @v2.1.0
     */
    UserBean findById(@Param("id") String id);

    UserBean selectUserIsThird(@Param("uPassword") String uPassword);

    UserBean selectByUserBind(@Param("openId") String openId, @Param("password") String password);

}
